home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / GXErrors.h < prev    next >
Text File  |  1995-07-06  |  38KB  |  788 lines

  1. /*
  2.      File:        GXErrors.h
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __GXERRORS__
  21. #define __GXERRORS__
  22.  
  23.  
  24. #ifndef __CONDITIONALMACROS__
  25. #include <ConditionalMacros.h>
  26. #endif
  27.  
  28. #ifndef __MIXEDMODE__
  29. #include <MixedMode.h>
  30. #endif
  31. /*    #include <Types.h>                                            */
  32.  
  33. #ifndef __GXTYPES__
  34. #include <GXTypes.h>
  35. #endif
  36. /*    #include <GXMath.h>                                            */
  37. /*        #include <FixMath.h>                                    */
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. #if PRAGMA_ALIGN_SUPPORTED
  44. #pragma options align=mac68k
  45. #endif
  46.  
  47. #if PRAGMA_IMPORT_SUPPORTED
  48. #pragma import on
  49. #endif
  50.  
  51. #if defined(__MWERKS__) && GENERATING68K
  52.     #pragma push
  53.     #pragma pointers_in_D0
  54. #endif
  55.  
  56. #define graphicsErrorsIncludes
  57. /* old header = graphics errors */
  58.  
  59.  
  60. enum {
  61.     gxFirstSystemError            = -27999,                        /* 0xffff92a1 */
  62.     gxFirstFatalError            = -27999,
  63.     gxLastFatalError            = -27951,
  64.     gxFirstNonfatalError        = -27950,
  65.     gxFirstFontScalerError        = -27900,
  66.     gxLastFontScalerError        = -27851,
  67.     gxFirstParameterError        = -27850,
  68.     gxFirstImplementationLimitError = -27800,
  69.     gxFirstSystemDebuggingError    = -27700,
  70.     gxLastSystemError            = -27000,                        /* 0xffff9688 */
  71.     gxFirstLibraryError            = 1048576,                        /* 0x00100000 */
  72.     gxLastLibraryError            = 2097151,                        /* 0x001fffff */
  73.     gxFirstAppError                = 2097152,                        /* 0x00200000 */
  74.     gxLastAppError                = 4194303,                        /* 0x003fffff */
  75.     gxFirstSystemWarning        = -26999,                        /* 0xffff9689 */
  76.     gxFirstResultOutOfRangeWarning = -26950,
  77.     gxFirstParameterOutOfRangeWarning = -26900,
  78.     gxFirstFontScalerWarning    = -26850,
  79.     gxFirstSystemDebuggingWarning = -26700,
  80.     gxLastSystemWarning            = -26000,                        /* 0xffff9a70 */
  81.     gxFirstLibraryWarning        = 4194304,                        /* 0x00400000 */
  82.     gxLastLibraryWarning        = 5242879,                        /* 0x004fffff */
  83.     gxFirstAppWarning            = 5242880,                        /* 0x00500000 */
  84.     gxLastAppWarning            = 7340031,                        /* 0x006fffff */
  85.     gxFirstSystemNotice            = -25999,                        /* 0xffff9a71 */
  86.     gxLastSystemNotice            = -25500,                        /* 0xffff9c64 */
  87.     gxFirstLibraryNotice        = 7340032,                        /* 0x00700000 */
  88.     gxLastLibraryNotice            = 7602175,                        /* 0x0073ffff */
  89.     gxFirstAppNotice            = 7602176,                        /* 0x00740000 */
  90.     gxLastAppNotice                = 8388607                        /* 0x007fffff */
  91. };
  92.  
  93. enum gxGraphicErrors {
  94. /* truly fatal errors */
  95.     out_of_memory                = gxFirstFatalError,
  96.     internal_fatal_error        = gxFirstFatalError + 1,
  97.     no_outline_font_found        = gxFirstFatalError + 2,
  98.     not_enough_memory_for_graphics_client_heap = gxFirstFatalError + 3,
  99.     could_not_create_backing_store = gxFirstFatalError + 4,
  100. /* internal errors */
  101.     internal_error                = gxFirstNonfatalError,
  102.     internal_font_error            = gxFirstNonfatalError + 1,
  103.     internal_layout_error        = gxFirstNonfatalError + 2,
  104. /* recoverable errors */
  105.     could_not_dispose_backing_store = internal_layout_error + 2,
  106.     unflattening_interrupted_by_client = internal_layout_error + 3,
  107. /* font manager errors */
  108.     font_cannot_be_changed        = internal_layout_error + 4,
  109.     illegal_font_parameter        = internal_layout_error + 5,
  110. /* gxFont scaler errors */
  111.     null_font_scaler_context    = gxFirstFontScalerError,
  112.     null_font_scaler_input        = gxFirstFontScalerError + 1,
  113.     invalid_font_scaler_context    = gxFirstFontScalerError + 2,
  114.     invalid_font_scaler_input    = gxFirstFontScalerError + 3,
  115.     invalid_font_scaler_font_data = gxFirstFontScalerError + 4,
  116.     font_scaler_newblock_failed    = gxFirstFontScalerError + 5,
  117.     font_scaler_getfonttable_failed = gxFirstFontScalerError + 6,
  118.     font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7,
  119.     font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8,
  120.     required_font_scaler_table_missing = gxFirstFontScalerError + 9,
  121.     unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10,
  122.     unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11,
  123.     unsupported_font_scaler_font_format = gxFirstFontScalerError + 12,
  124.     font_scaler_hinting_error    = gxFirstFontScalerError + 13,
  125.     font_scaler_rasterizer_error = gxFirstFontScalerError + 14,
  126.     font_scaler_internal_error    = gxFirstFontScalerError + 15,
  127.     font_scaler_invalid_matrix    = gxFirstFontScalerError + 16,
  128.     font_scaler_fixed_overflow    = gxFirstFontScalerError + 17,
  129.     font_scaler_api_version_mismatch = gxFirstFontScalerError + 18,
  130.     font_scaler_streaming_aborted = gxFirstFontScalerError + 19,
  131.     unknown_font_scaler_error    = gxFirstFontScalerError + 20,
  132. /* bad parameters */
  133.     parameter_is_nil            = gxFirstParameterError,
  134.     shape_is_nil                = gxFirstParameterError + 1,
  135.     style_is_nil                = gxFirstParameterError + 2,
  136.     transform_is_nil            = gxFirstParameterError + 3,
  137.     ink_is_nil                    = gxFirstParameterError + 4,
  138.     transferMode_is_nil            = gxFirstParameterError + 5,
  139.     color_is_nil                = gxFirstParameterError + 6,
  140.     colorProfile_is_nil            = gxFirstParameterError + 7,
  141.     colorSet_is_nil                = gxFirstParameterError + 8,
  142.     spoolProcedure_is_nil        = gxFirstParameterError + 9,
  143.     tag_is_nil                    = gxFirstParameterError + 10,
  144.     type_is_nil                    = gxFirstParameterError + 11,
  145.     mapping_is_nil                = gxFirstParameterError + 12,
  146.     invalid_viewDevice_reference = gxFirstParameterError + 13,
  147.     invalid_viewGroup_reference    = gxFirstParameterError + 14,
  148.     invalid_viewPort_reference    = gxFirstParameterError + 15,
  149. /* implementation limits, these should be right before the debugging errors */
  150.     number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError,
  151.     number_of_points_exceeds_implementation_limit = gxFirstImplementationLimitError + 1,
  152.     size_of_polygon_exceeds_implementation_limit = gxFirstImplementationLimitError + 2,
  153.     size_of_path_exceeds_implementation_limit = gxFirstImplementationLimitError + 3,
  154.     size_of_text_exceeds_implementation_limit = gxFirstImplementationLimitError + 4,
  155.     size_of_bitmap_exceeds_implementation_limit = gxFirstImplementationLimitError + 5,
  156.     number_of_colors_exceeds_implementation_limit = gxFirstImplementationLimitError + 6,
  157.     procedure_not_reentrant        = gxFirstImplementationLimitError + 7
  158. };
  159.  
  160. enum {
  161. /* internal debugging errors */
  162.     functionality_unimplemented    = gxFirstSystemDebuggingError,
  163.     clip_to_frame_shape_unimplemented = gxFirstSystemDebuggingError + 1,
  164. /* font parameter debugging errors */
  165.     illegal_font_storage_type    = gxFirstSystemDebuggingError + 2,
  166.     illegal_font_storage_reference = gxFirstSystemDebuggingError + 3,
  167.     illegal_font_attributes        = gxFirstSystemDebuggingError + 4,
  168. /* parameter debugging errors */
  169.     parameter_out_of_range        = gxFirstSystemDebuggingError + 5,
  170.     inconsistent_parameters        = gxFirstSystemDebuggingError + 6,
  171.     index_is_less_than_zero        = gxFirstSystemDebuggingError + 7,
  172.     index_is_less_than_one        = gxFirstSystemDebuggingError + 8,
  173.     count_is_less_than_zero        = gxFirstSystemDebuggingError + 9,
  174.     count_is_less_than_one        = gxFirstSystemDebuggingError + 10,
  175.     contour_is_less_than_zero    = gxFirstSystemDebuggingError + 11,
  176.     length_is_less_than_zero    = gxFirstSystemDebuggingError + 12,
  177.     invalid_client_reference    = gxFirstSystemDebuggingError + 13,
  178.     invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14,
  179.     invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15,
  180.     colorSpace_out_of_range        = gxFirstSystemDebuggingError + 16,
  181.     pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17,
  182.     frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18,
  183.     tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19,
  184.     method_parameter_out_of_range = gxFirstSystemDebuggingError + 20,
  185.     space_may_not_be_indexed    = gxFirstSystemDebuggingError + 21,
  186.     glyph_index_too_small        = gxFirstSystemDebuggingError + 22,
  187.     no_glyphs_added_to_font        = gxFirstSystemDebuggingError + 23,
  188.     glyph_not_added_to_font        = gxFirstSystemDebuggingError + 24,
  189.     point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25,
  190.     required_font_table_not_present = gxFirstSystemDebuggingError + 25,
  191.     unknown_font_table_format    = gxFirstSystemDebuggingError + 26, /* the styles encoding is not present in the font */
  192.     shapeFill_not_allowed        = gxFirstSystemDebuggingError + 27,
  193.     inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 28,
  194.     invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 29,
  195.     colorProfile_must_be_nil    = gxFirstSystemDebuggingError + 30,
  196.     bitmap_pixel_size_must_be_1    = gxFirstSystemDebuggingError + 31,
  197.     empty_shape_not_allowed        = gxFirstSystemDebuggingError + 32,
  198.     ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 33,
  199.     nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 34,
  200.     complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 35,
  201.     invalid_mapping                = gxFirstSystemDebuggingError + 36,
  202.     cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 37,
  203.     cannot_use_original_item_shapes_when_growing_picture = gxFirstSystemDebuggingError + 38,
  204.     cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 39,
  205.     cannot_dispose_locked_tag    = gxFirstSystemDebuggingError + 40,
  206.     cannot_dispose_locked_shape    = gxFirstSystemDebuggingError + 41,
  207. /* restricted access */
  208.     shape_access_not_allowed    = gxFirstSystemDebuggingError + 42,
  209.     colorSet_access_restricted    = gxFirstSystemDebuggingError + 43,
  210.     colorProfile_access_restricted = gxFirstSystemDebuggingError + 44,
  211.     tag_access_restricted        = gxFirstSystemDebuggingError + 45,
  212.     viewDevice_access_restricted = gxFirstSystemDebuggingError + 46,
  213.     graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 47,
  214.     style_run_array_does_not_match_number_of_characters = gxFirstSystemDebuggingError + 48,
  215.     rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 49,
  216.     unknown_graphics_heap        = gxFirstSystemDebuggingError + 50,
  217.     graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 51,
  218.     cannot_set_graphics_client_memory_without_setting_size = gxFirstSystemDebuggingError + 52,
  219.     graphics_client_memory_too_small = gxFirstSystemDebuggingError + 53,
  220.     graphics_client_memory_is_already_allocated = gxFirstSystemDebuggingError + 54,
  221.     viewPort_is_a_window        = gxFirstSystemDebuggingError + 55,
  222. /* wrong type/bad reference */
  223.     illegal_type_for_shape        = gxFirstSystemDebuggingError + 56,
  224.     shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 57,
  225.     shape_does_not_contain_text    = gxFirstSystemDebuggingError + 58,
  226.     picture_expected            = gxFirstSystemDebuggingError + 59,
  227.     bitmap_is_not_resizable        = gxFirstSystemDebuggingError + 60,
  228.     shape_may_not_be_a_bitmap    = gxFirstSystemDebuggingError + 61,
  229.     shape_may_not_be_a_picture    = gxFirstSystemDebuggingError + 62,
  230.     graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 63,
  231.     graphic_type_does_not_have_multiple_contours = gxFirstSystemDebuggingError + 64,
  232.     graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 65,
  233.     graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 66,
  234.     graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 67,
  235.     graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 68,
  236.     graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 69,
  237.     graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 70,
  238.     graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 71,
  239.     graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 72,
  240.     graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 73,
  241.     shape_cannot_be_inverted    = gxFirstSystemDebuggingError + 74,
  242.     shape_does_not_have_area    = gxFirstSystemDebuggingError + 75,
  243.     shape_does_not_have_length    = gxFirstSystemDebuggingError + 76,
  244.     first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 77,
  245.     picture_cannot_contain_itself = gxFirstSystemDebuggingError + 78,
  246.     viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 79,
  247.     cannot_set_unique_items_attribute_when_picture_contains_items = gxFirstSystemDebuggingError + 80,
  248.     layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 81,
  249.     layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 82,
  250. /* validation errors */
  251.     object_wrong_type            = gxFirstSystemDebuggingError + 83,
  252.     shape_wrong_type            = gxFirstSystemDebuggingError + 84,
  253.     style_wrong_type            = gxFirstSystemDebuggingError + 85,
  254.     ink_wrong_type                = gxFirstSystemDebuggingError + 86,
  255.     transform_wrong_type        = gxFirstSystemDebuggingError + 87,
  256.     device_wrong_type            = gxFirstSystemDebuggingError + 88,
  257.     port_wrong_type                = gxFirstSystemDebuggingError + 89,
  258. /* validation cache errors */
  259.     shape_cache_wrong_type        = gxFirstSystemDebuggingError + 90,
  260.     style_cache_wrong_type        = gxFirstSystemDebuggingError + 91,
  261.     ink_cache_wrong_type        = gxFirstSystemDebuggingError + 92,
  262.     transform_cache_wrong_type    = gxFirstSystemDebuggingError + 93,
  263.     port_cache_wrong_type        = gxFirstSystemDebuggingError + 94,
  264.     shape_cache_parent_mismatch    = gxFirstSystemDebuggingError + 95,
  265.     style_cache_parent_mismatch    = gxFirstSystemDebuggingError + 96,
  266.     ink_cache_parent_mismatch    = gxFirstSystemDebuggingError + 97,
  267.     transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 98,
  268.     port_cache_parent_mismatch    = gxFirstSystemDebuggingError + 99,
  269.     invalid_shape_cache_port    = gxFirstSystemDebuggingError + 100,
  270.     invalid_shape_cache_device    = gxFirstSystemDebuggingError + 101,
  271.     invalid_ink_cache_port        = gxFirstSystemDebuggingError + 102,
  272.     invalid_ink_cache_device    = gxFirstSystemDebuggingError + 103,
  273.     invalid_style_cache_port    = gxFirstSystemDebuggingError + 104,
  274.     invalid_style_cache_device    = gxFirstSystemDebuggingError + 105,
  275.     invalid_transform_cache_port = gxFirstSystemDebuggingError + 106,
  276.     invalid_transform_cache_device = gxFirstSystemDebuggingError + 107,
  277.     recursive_caches            = gxFirstSystemDebuggingError + 108,
  278. /* validation shape cache errors */
  279.     invalid_fillShape_ownerCount = gxFirstSystemDebuggingError + 109,
  280.     recursive_fillShapes        = gxFirstSystemDebuggingError + 110,
  281. /* validation memory block errors */
  282.     indirect_memory_block_too_small = gxFirstSystemDebuggingError + 111,
  283.     indirect_memory_block_too_large = gxFirstSystemDebuggingError + 112,
  284.     unexpected_nil_pointer        = gxFirstSystemDebuggingError + 113,
  285.     bad_address                    = gxFirstSystemDebuggingError + 114,
  286. /* validation object errors */
  287.     no_owners                    = gxFirstSystemDebuggingError + 115,
  288.     invalid_pointer                = gxFirstSystemDebuggingError + 116,
  289.     invalid_seed                = gxFirstSystemDebuggingError + 117,
  290.     invalid_frame_seed            = gxFirstSystemDebuggingError + 118,
  291.     invalid_text_seed            = gxFirstSystemDebuggingError + 119,
  292.     invalid_draw_seed            = gxFirstSystemDebuggingError + 120,
  293.     bad_private_flags            = gxFirstSystemDebuggingError + 121,
  294. /* validation path and polygon errors */
  295.     invalid_vector_count        = gxFirstSystemDebuggingError + 122,
  296.     invalid_contour_count        = gxFirstSystemDebuggingError + 123,
  297. /* validation bitmap errors */
  298.     bitmap_ptr_too_small        = gxFirstSystemDebuggingError + 124,
  299.     bitmap_ptr_not_aligned        = gxFirstSystemDebuggingError + 125,
  300.     bitmap_rowBytes_negative    = gxFirstSystemDebuggingError + 126,
  301.     bitmap_width_negative        = gxFirstSystemDebuggingError + 127,
  302.     bitmap_height_negative        = gxFirstSystemDebuggingError + 128,
  303.     invalid_pixelSize            = gxFirstSystemDebuggingError + 129,
  304.     bitmap_rowBytes_too_small    = gxFirstSystemDebuggingError + 130,
  305.     bitmap_rowBytes_not_aligned    = gxFirstSystemDebuggingError + 131,
  306.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = gxFirstSystemDebuggingError + 132,
  307. /* validation bitmap image errors */
  308.     invalid_bitImage_fileOffset    = gxFirstSystemDebuggingError + 133,
  309.     invalid_bitImage_owners        = gxFirstSystemDebuggingError + 134,
  310.     invalid_bitImage_rowBytes    = gxFirstSystemDebuggingError + 135,
  311.     invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 136,
  312. /* validation text errors */
  313.     text_bounds_cache_wrong_size = gxFirstSystemDebuggingError + 137,
  314.     text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 138,
  315.     text_index_cache_wrong_size    = gxFirstSystemDebuggingError + 139,
  316. /* validation glyph errors */
  317.     glyph_run_count_negative    = gxFirstSystemDebuggingError + 140,
  318.     glyph_run_count_zero        = gxFirstSystemDebuggingError + 141,
  319.     glyph_run_counts_do_not_sum_to_character_count = gxFirstSystemDebuggingError + 142,
  320.     glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 143,
  321.     glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 144,
  322. /* validation layout errors */
  323.     layout_run_length_negative    = gxFirstSystemDebuggingError + 145,
  324.     layout_run_length_zero        = gxFirstSystemDebuggingError + 146,
  325.     layout_run_level_negative    = gxFirstSystemDebuggingError + 147,
  326.     layout_run_lengths_do_not_sum_to_text_length = gxFirstSystemDebuggingError + 148,
  327. /* validation picture errors */
  328.     bad_shape_in_picture        = gxFirstSystemDebuggingError + 149,
  329.     bad_style_in_picture        = gxFirstSystemDebuggingError + 150,
  330.     bad_ink_in_picture            = gxFirstSystemDebuggingError + 151,
  331.     bad_transform_in_picture    = gxFirstSystemDebuggingError + 152,
  332.     bad_shape_cache_in_picture    = gxFirstSystemDebuggingError + 153,
  333.     bad_seed_in_picture            = gxFirstSystemDebuggingError + 154,
  334.     invalid_picture_count        = gxFirstSystemDebuggingError + 155,
  335. /* validation text face errors */
  336.     bad_textLayer_count            = gxFirstSystemDebuggingError + 156,
  337.     bad_fillType_in_textFace    = gxFirstSystemDebuggingError + 157,
  338.     bad_style_in_textFace        = gxFirstSystemDebuggingError + 158,
  339.     bad_transform_in_textFace    = gxFirstSystemDebuggingError + 159,
  340. /* validation transform errors */
  341.     invalid_matrix_flag            = gxFirstSystemDebuggingError + 160,
  342.     transform_clip_missing        = gxFirstSystemDebuggingError + 161,
  343. /* validation font cache errors */
  344.     metrics_wrong_type            = gxFirstSystemDebuggingError + 162,
  345.     metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 163,
  346.     scalar_block_wrong_type        = gxFirstSystemDebuggingError + 164,
  347.     scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 165,
  348.     scalar_block_too_small        = gxFirstSystemDebuggingError + 166,
  349.     scalar_block_too_large        = gxFirstSystemDebuggingError + 167,
  350.     invalid_metrics_range        = gxFirstSystemDebuggingError + 168,
  351.     invalid_metrics_flags        = gxFirstSystemDebuggingError + 169,
  352.     metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 170,
  353.     font_wrong_type                = gxFirstSystemDebuggingError + 171,
  354.     font_wrong_size                = gxFirstSystemDebuggingError + 172,
  355.     invalid_font_platform        = gxFirstSystemDebuggingError + 173,
  356.     invalid_lookup_range        = gxFirstSystemDebuggingError + 174,
  357.     invalid_lookup_platform        = gxFirstSystemDebuggingError + 175,
  358.     font_not_in_font_list        = gxFirstSystemDebuggingError + 176,
  359.     metrics_not_in_metrics_list    = gxFirstSystemDebuggingError + 177,
  360. /* validation view device errors */
  361.     bad_device_private_flags    = gxFirstSystemDebuggingError + 178,
  362.     bad_device_attributes        = gxFirstSystemDebuggingError + 179,
  363.     invalid_device_number        = gxFirstSystemDebuggingError + 180,
  364.     invalid_device_viewGroup    = gxFirstSystemDebuggingError + 181,
  365.     invalid_device_bounds        = gxFirstSystemDebuggingError + 182,
  366.     invalid_bitmap_in_device    = gxFirstSystemDebuggingError + 183,
  367. /* validation color set errors */
  368.     colorSet_wrong_type            = gxFirstSystemDebuggingError + 184,
  369.     invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 185,
  370.     invalid_colorSet_colorSpace    = gxFirstSystemDebuggingError + 186,
  371.     invalid_colorSet_count        = gxFirstSystemDebuggingError + 187,
  372. /* validation color profile errors */
  373.     colorProfile_wrong_type        = gxFirstSystemDebuggingError + 188,
  374.     invalid_colorProfile_flags    = gxFirstSystemDebuggingError + 189,
  375.     invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 190,
  376. /* validation internal backing store errors */
  377.     backing_free_parent_mismatch = gxFirstSystemDebuggingError + 191,
  378.     backing_store_parent_mismatch = gxFirstSystemDebuggingError + 192
  379. };
  380.  
  381. enum gxGraphicWarnings {
  382. /* warnings about warnings */
  383.     warning_stack_underflow        = gxFirstSystemWarning,
  384.     warning_stack_overflow        = gxFirstSystemWarning + 1,
  385.     notice_stack_underflow        = gxFirstSystemWarning + 2,
  386.     notice_stack_overflow        = gxFirstSystemWarning + 3,
  387.     about_to_grow_heap            = gxFirstSystemWarning + 4,
  388.     about_to_unload_objects        = gxFirstSystemWarning + 5,
  389. /* result went out of range */
  390.     map_shape_out_of_range        = gxFirstResultOutOfRangeWarning,
  391.     move_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 1,
  392.     scale_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 2,
  393.     rotate_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 3,
  394.     skew_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 4,
  395.     map_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 5,
  396.     move_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 6,
  397.     scale_transform_out_of_range = gxFirstResultOutOfRangeWarning + 7,
  398.     rotate_transform_out_of_range = gxFirstResultOutOfRangeWarning + 8,
  399.     skew_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 9,
  400.     map_points_out_of_range        = gxFirstResultOutOfRangeWarning + 10,
  401. /* gave a parameter out of range */
  402.     contour_out_of_range        = gxFirstParameterOutOfRangeWarning,
  403.     index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1,
  404.     picture_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 2,
  405.     color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3,
  406.     colorSet_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 4,
  407.     index_out_of_range            = gxFirstParameterOutOfRangeWarning + 5,
  408.     count_out_of_range            = gxFirstParameterOutOfRangeWarning + 6,
  409.     length_out_of_range            = gxFirstParameterOutOfRangeWarning + 7,
  410.     font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8,
  411.     font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9,
  412.     point_out_of_range            = gxFirstParameterOutOfRangeWarning + 10,
  413.     profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11,
  414. /* gxFont scaler warnings */
  415.     font_scaler_no_output        = gxFirstFontScalerWarning,
  416.     font_scaler_fake_metrics    = gxFirstFontScalerWarning + 1,
  417.     font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2,
  418.     font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3,
  419.     font_scaler_no_kerning_applied = gxFirstFontScalerWarning + 4,
  420. /* might not be what you expected */
  421.     character_substitution_took_place = gxFirstFontScalerWarning + 5,
  422.     unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6,
  423.     font_language_not_found        = gxFirstFontScalerWarning + 7,
  424.     font_not_found_during_unflattening = gxFirstFontScalerWarning + 8,
  425. /*storage */
  426.     unrecognized_stream_version    = gxFirstFontScalerWarning + 9,
  427.     bad_data_in_stream            = gxFirstFontScalerWarning + 10
  428. };
  429.  
  430. enum {
  431. /* nonsense data */
  432.     new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning,
  433.     new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1,
  434.     extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2,
  435.     font_table_not_found        = gxFirstSystemDebuggingWarning + 3,
  436.     font_name_not_found            = gxFirstSystemDebuggingWarning + 4,
  437. /* doesn't make sense to do */
  438.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 5,
  439.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 6,
  440.     cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7,
  441.     cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8,
  442.     cannot_dispose_default_ink    = gxFirstSystemDebuggingWarning + 9,
  443.     cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10,
  444.     cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11,
  445.     cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12,
  446.     shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13,
  447. /* couldn't find what you were looking for */
  448.     point_does_not_intersect_port = gxFirstSystemDebuggingWarning + 14,
  449.     cannot_dispose_non_font        = gxFirstSystemDebuggingWarning + 15,
  450.     face_override_style_font_must_match_style = gxFirstSystemDebuggingWarning + 16,
  451.     union_of_area_and_length_returns_area_only = gxFirstSystemDebuggingWarning + 17,
  452.     insufficient_coordinate_space_for_new_device = gxFirstSystemDebuggingWarning + 18,
  453. /* other */
  454.     shape_passed_has_no_bounds    = gxFirstSystemDebuggingWarning + 19,
  455.     tags_of_type_flst_removed    = gxFirstSystemDebuggingWarning + 20,
  456.     translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21
  457. };
  458.  
  459. enum gxGraphicNotices {
  460.     parameters_have_no_effect    = gxFirstSystemNotice,
  461.     attributes_already_set        = gxFirstSystemNotice + 1,
  462.     caps_already_set            = gxFirstSystemNotice + 2,
  463.     clip_already_set            = gxFirstSystemNotice + 3,
  464.     color_already_set            = gxFirstSystemNotice + 4,
  465.     curve_error_already_set        = gxFirstSystemNotice + 5,
  466.     dash_already_set            = gxFirstSystemNotice + 6,
  467.     default_colorProfile_already_set = gxFirstSystemNotice + 7,
  468.     default_ink_already_set        = gxFirstSystemNotice + 8,
  469.     default_transform_already_set = gxFirstSystemNotice + 9,
  470.     default_shape_already_set    = gxFirstSystemNotice + 10,
  471.     default_style_already_set    = gxFirstSystemNotice + 11,
  472.     dither_already_set            = gxFirstSystemNotice + 12,
  473.     encoding_already_set        = gxFirstSystemNotice + 13,
  474.     face_already_set            = gxFirstSystemNotice + 14,
  475.     fill_already_set            = gxFirstSystemNotice + 15,
  476.     font_already_set            = gxFirstSystemNotice + 16,
  477.     font_variations_already_set    = gxFirstSystemNotice + 17,
  478.     glyph_positions_are_already_set = gxFirstSystemNotice + 18,
  479.     glyph_tangents_are_already_set = gxFirstSystemNotice + 19,
  480.     halftone_already_set        = gxFirstSystemNotice + 20,
  481.     hit_test_already_set        = gxFirstSystemNotice + 21,
  482.     ink_already_set                = gxFirstSystemNotice + 22,
  483.     join_already_set            = gxFirstSystemNotice + 23,
  484.     justification_already_set    = gxFirstSystemNotice + 24,
  485.     mapping_already_set            = gxFirstSystemNotice + 25,
  486.     pattern_already_set            = gxFirstSystemNotice + 26,
  487.     pen_already_set                = gxFirstSystemNotice + 27,
  488.     style_already_set            = gxFirstSystemNotice + 28,
  489.     tag_already_set                = gxFirstSystemNotice + 29,
  490.     text_attributes_already_set    = gxFirstSystemNotice + 30,
  491.     text_size_already_set        = gxFirstSystemNotice + 31,
  492.     transfer_already_set        = gxFirstSystemNotice + 32,
  493.     translator_already_installed_on_this_grafport = gxFirstSystemNotice + 33,
  494.     transform_already_set        = gxFirstSystemNotice + 34,
  495.     type_already_set            = gxFirstSystemNotice + 35,
  496.     validation_level_already_set = gxFirstSystemNotice + 36,
  497.     viewPorts_already_set        = gxFirstSystemNotice + 37,
  498.     viewPort_already_in_viewGroup = gxFirstSystemNotice + 38,
  499.     viewDevice_already_in_viewGroup = gxFirstSystemNotice + 39,
  500.     geometry_unaffected            = gxFirstSystemNotice + 40,
  501.     mapping_unaffected            = gxFirstSystemNotice + 41,
  502.     tags_in_shape_ignored        = gxFirstSystemNotice + 42,
  503.     shape_already_in_primitive_form = gxFirstSystemNotice + 43,
  504.     shape_already_in_simple_form = gxFirstSystemNotice + 44,
  505.     shape_already_broken        = gxFirstSystemNotice + 45,
  506.     shape_already_joined        = gxFirstSystemNotice + 46,
  507.     cache_already_cleared        = gxFirstSystemNotice + 47,
  508.     shape_not_disposed            = gxFirstSystemNotice + 48,
  509.     style_not_disposed            = gxFirstSystemNotice + 49,
  510.     ink_not_disposed            = gxFirstSystemNotice + 50,
  511.     transform_not_disposed        = gxFirstSystemNotice + 51,
  512.     colorSet_not_disposed        = gxFirstSystemNotice + 52,
  513.     colorProfile_not_disposed    = gxFirstSystemNotice + 53,
  514.     font_not_disposed            = gxFirstSystemNotice + 54,
  515.     glyph_tangents_have_no_effect = gxFirstSystemNotice + 55,
  516.     glyph_positions_determined_by_advance = gxFirstSystemNotice + 56,
  517.     transform_viewPorts_already_set = gxFirstSystemNotice + 57,
  518.     directShape_attribute_set_as_side_effect = gxFirstSystemNotice + 58,
  519.     lockShape_called_as_side_effect = gxFirstSystemNotice + 59,
  520.     lockTag_called_as_side_effect = gxFirstSystemNotice + 60,
  521.     shapes_unlocked_as_side_effect = gxFirstSystemNotice + 61,
  522.     shape_not_locked            = gxFirstSystemNotice + 62,
  523.     tag_not_locked                = gxFirstSystemNotice + 63,
  524.     profile_not_locked            = tag_not_locked,
  525.     lockProfile_called_as_side_effect = lockTag_called_as_side_effect,
  526.     disposed_dead_caches        = gxFirstSystemNotice + 64,
  527.     disposed_live_caches        = gxFirstSystemNotice + 65,
  528.     low_on_memory                = gxFirstSystemNotice + 66,
  529.     very_low_on_memory            = gxFirstSystemNotice + 67,
  530.     transform_references_disposed_viewPort = gxFirstSystemNotice + 68
  531. };
  532.  
  533. typedef long gxGraphicsError;
  534.  
  535. typedef long gxGraphicsWarning;
  536.  
  537. typedef long gxGraphicsNotice;
  538.  
  539. typedef void (*gxUserErrorProcPtr)(gxGraphicsError status, long refcon);
  540. typedef void (*gxUserWarningProcPtr)(gxGraphicsWarning status, long refcon);
  541. typedef void (*gxUserNoticeProcPtr)(gxGraphicsNotice status, long refcon);
  542.  
  543. #if GENERATINGCFM
  544. typedef UniversalProcPtr gxUserErrorUPP;
  545. typedef UniversalProcPtr gxUserWarningUPP;
  546. typedef UniversalProcPtr gxUserNoticeUPP;
  547. #else
  548. typedef gxUserErrorProcPtr gxUserErrorUPP;
  549. typedef gxUserWarningProcPtr gxUserWarningUPP;
  550. typedef gxUserNoticeProcPtr gxUserNoticeUPP;
  551. #endif
  552.  
  553. enum {
  554.     uppgxUserErrorProcInfo = kCStackBased
  555.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxGraphicsError)))
  556.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))),
  557.     uppgxUserWarningProcInfo = kCStackBased
  558.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxGraphicsWarning)))
  559.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))),
  560.     uppgxUserNoticeProcInfo = kCStackBased
  561.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(gxGraphicsNotice)))
  562.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  563. };
  564.  
  565. #if GENERATINGCFM
  566. #define NewgxUserErrorProc(userRoutine)        \
  567.         (gxUserErrorUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserErrorProcInfo, GetCurrentArchitecture())
  568. #define NewgxUserWarningProc(userRoutine)        \
  569.         (gxUserWarningUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserWarningProcInfo, GetCurrentArchitecture())
  570. #define NewgxUserNoticeProc(userRoutine)        \
  571.         (gxUserNoticeUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserNoticeProcInfo, GetCurrentArchitecture())
  572. #else
  573. #define NewgxUserErrorProc(userRoutine)        \
  574.         ((gxUserErrorUPP) (userRoutine))
  575. #define NewgxUserWarningProc(userRoutine)        \
  576.         ((gxUserWarningUPP) (userRoutine))
  577. #define NewgxUserNoticeProc(userRoutine)        \
  578.         ((gxUserNoticeUPP) (userRoutine))
  579. #endif
  580.  
  581. #if GENERATINGCFM
  582. #define CallgxUserErrorProc(userRoutine, status, refcon)        \
  583.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxUserErrorProcInfo, (status), (refcon))
  584. #define CallgxUserWarningProc(userRoutine, status, refcon)        \
  585.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxUserWarningProcInfo, (status), (refcon))
  586. #define CallgxUserNoticeProc(userRoutine, status, refcon)        \
  587.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxUserNoticeProcInfo, (status), (refcon))
  588. #else
  589. #define CallgxUserErrorProc(userRoutine, status, refcon)        \
  590.         (*(userRoutine))((status), (refcon))
  591. #define CallgxUserWarningProc(userRoutine, status, refcon)        \
  592.         (*(userRoutine))((status), (refcon))
  593. #define CallgxUserNoticeProc(userRoutine, status, refcon)        \
  594.         (*(userRoutine))((status), (refcon))
  595. #endif
  596.  
  597. typedef gxUserErrorProcPtr gxUserErrorFunction;
  598.  
  599. typedef gxUserWarningProcPtr gxUserWarningFunction;
  600.  
  601. typedef gxUserNoticeProcPtr gxUserNoticeFunction;
  602.  
  603.  
  604. enum {
  605.     common_colors_not_initialized = gxFirstLibraryError,
  606.     no_open_picture                = gxFirstLibraryError + 1,
  607.     picture_already_open        = gxFirstLibraryError + 2,
  608.     no_open_poly                = gxFirstLibraryError + 3,
  609.     poly_already_open            = gxFirstLibraryError + 4,
  610.     no_open_region                = gxFirstLibraryError + 5,
  611.     region_already_open            = gxFirstLibraryError + 6,
  612.     no_active_picture            = gxFirstLibraryError + 7
  613. };
  614.  
  615. enum {
  616.     no_picture_drawn            = gxFirstLibraryWarning,
  617.     polygons_have_different_size_contours = gxFirstLibraryWarning + 1,
  618.     graphic_type_cannot_be_specifed_by_four_values = gxFirstLibraryWarning + 2,
  619.     graphic_type_cannot_be_specifed_by_six_values = gxFirstLibraryWarning + 3,
  620.     point_expected                = gxFirstLibraryWarning + 4,
  621.     line_or_rectangle_expected    = gxFirstLibraryWarning + 5,
  622.     curve_expected                = gxFirstLibraryWarning + 6,
  623.     graphic_type_does_not_contain_control_bits = gxFirstLibraryWarning + 7,
  624.     request_exceeds_available_data = gxFirstLibraryWarning + 8,
  625.     extra_data_unread            = gxFirstLibraryWarning + 9,
  626.     no_variable_length_user_data_saved = gxFirstLibraryWarning + 10
  627. };
  628.  
  629. enum {
  630.     zero_length_string_passed    = gxFirstLibraryNotice
  631. };
  632.  
  633. #define graphicsDebuggingIncludes
  634. /* old header = graphics debugging */
  635.  
  636. enum gxValidationLevels {
  637. /* These levels tell how to validate routines.  Choose one. */
  638.     gxNoValidation                = 0x00,                            /* no validation */
  639.     gxPublicValidation            = 0x01,                            /* check parameters to public routines */
  640.     gxInternalValidation        = 0x02,                            /* check parameters to internal routines */
  641. /* These levels tell how to validate types.  Choose one. */
  642.     gxTypeValidation            = 0x00,                            /* check types of objects */
  643.     gxStructureValidation        = 0x10,                            /* check fields of private structures */
  644.     gxAllObjectValidation        = 0x20,                            /* check every object over every call */
  645. /* These levels tell how to validate memory manager blocks.  Choose any combination. */
  646.     gxNoMemoryManagerValidation    = 0x0000,
  647.     gxApBlockValidation            = 0x0100,                        /* check the relevant block structures after each memory mgr. call */
  648.     gxFontBlockValidation        = 0x0200,                        /* check the system gxHeap as well */
  649.     gxApHeapValidation            = 0x0400,                        /* check the memory manager’s gxHeap after every mem. call */
  650.     gxFontHeapValidation        = 0x0800,                        /* check the system gxHeap as well */
  651.     gxCheckApHeapValidation        = 0x1000,                        /* check the memory manager’s gxHeap if checking routine parameters */
  652.     gxCheckFontHeapValidation    = 0x2000                        /* check the system gxHeap as well */
  653. };
  654.  
  655. typedef long gxValidationLevel;
  656.  
  657.  
  658. enum gxDrawErrors {
  659.     no_draw_error                = 0,
  660. /* gxShape type errors */
  661.     shape_emptyType                = 1,
  662.     shape_inverse_fullType        = 2,
  663.     rectangle_zero_width        = 3,
  664.     rectangle_zero_height        = 4,
  665.     polygon_empty                = 5,
  666.     path_empty                    = 6,
  667.     bitmap_zero_width            = 7,
  668.     bitmap_zero_height            = 8,
  669.     text_empty                    = 9,
  670.     glyph_empty                    = 10,
  671.     layout_empty                = 11,
  672.     picture_empty                = 12,
  673. /* general gxShape errors */
  674.     shape_no_fill                = 13,
  675.     shape_no_enclosed_area        = 14,
  676.     shape_no_enclosed_pixels    = 15,
  677.     shape_very_small            = 16,
  678.     shape_very_large            = 17,
  679.     shape_contours_cancel        = 18,
  680. /* gxStyle errors */
  681.     pen_too_small                = 19,
  682.     text_size_too_small            = 20,
  683.     dash_empty                    = 21,
  684.     start_cap_empty                = 22,
  685.     pattern_empty                = 23,
  686.     textFace_empty                = 24,
  687.     shape_primitive_empty        = 25,
  688.     shape_primitive_very_small    = 26,
  689. /* gxInk errors */
  690.     transfer_equals_noMode        = 27,
  691.     transfer_matrix_ignores_source = 28,
  692.     transfer_matrix_ignores_device = 29,
  693.     transfer_source_reject        = 30,
  694.     transfer_mode_ineffective    = 31,
  695.     colorSet_no_entries            = 32,
  696.     bitmap_colorSet_one_entry    = 33,
  697. /* gxTransform errors */
  698.     transform_scale_too_small    = 34,
  699.     transform_map_too_large        = 35,
  700.     transform_move_too_large    = 36,
  701.     transform_scale_too_large    = 37,
  702.     transform_rotate_too_large    = 38,
  703.     transform_perspective_too_large = 39,
  704.     transform_skew_too_large    = 40,
  705.     transform_clip_no_intersection = 41,
  706.     transform_clip_empty        = 42,
  707.     transform_no_viewPorts        = 43,
  708. /* gxViewPort errors */
  709.     viewPort_disposed            = 44,
  710.     viewPort_clip_empty            = 45,
  711.     viewPort_clip_no_intersection = 46,
  712.     viewPort_scale_too_small    = 47,
  713.     viewPort_map_too_large        = 48,
  714.     viewPort_move_too_large        = 49,
  715.     viewPort_scale_too_large    = 50,
  716.     viewPort_rotate_too_large    = 51,
  717.     viewPort_perspective_too_large = 52,
  718.     viewPort_skew_too_large        = 53,
  719.     viewPort_viewGroup_offscreen = 54,
  720. /* gxViewDevice errors */
  721.     viewDevice_clip_no_intersection = 55,
  722.     viewDevice_scale_too_small    = 56,
  723.     viewDevice_map_too_large    = 57,
  724.     viewDevice_move_too_large    = 58,
  725.     viewDevice_scale_too_large    = 59,
  726.     viewDevice_rotate_too_large    = 60,
  727.     viewDevice_perspective_too_large = 61,
  728.     viewDevice_skew_too_large    = 62
  729. };
  730.  
  731. typedef long gxDrawError;
  732.  
  733. typedef Boolean (*gxUserDebugFunction)(const char *str, long message, long reference);
  734. extern gxDrawError GXGetShapeDrawError(gxShape source)
  735.  THREEWORDINLINE(0x303C, 0x1ee, 0xA832);
  736. extern void GXValidateAll(void)
  737.  THREEWORDINLINE(0x303C, 0x1ef, 0xA832);
  738. extern void GXValidateColorSet(gxColorSet target)
  739.  THREEWORDINLINE(0x303C, 0x1f0, 0xA832);
  740. extern void GXValidateColorProfile(gxColorProfile target)
  741.  THREEWORDINLINE(0x303C, 0x1f1, 0xA832);
  742. extern void GXValidateGraphicsClient(gxGraphicsClient target)
  743.  THREEWORDINLINE(0x303C, 0x1f2, 0xA832);
  744. extern void GXValidateInk(gxInk target)
  745.  THREEWORDINLINE(0x303C, 0x1f3, 0xA832);
  746. extern void GXValidateShape(gxShape target)
  747.  THREEWORDINLINE(0x303C, 0x1f4, 0xA832);
  748. extern void GXValidateStyle(gxStyle target)
  749.  THREEWORDINLINE(0x303C, 0x1f5, 0xA832);
  750. extern void GXValidateTag(gxTag target)
  751.  THREEWORDINLINE(0x303C, 0x1f6, 0xA832);
  752. extern void GXValidateTransform(gxTransform target)
  753.  THREEWORDINLINE(0x303C, 0x1f7, 0xA832);
  754. extern void GXValidateViewDevice(gxViewDevice target)
  755.  THREEWORDINLINE(0x303C, 0x1f8, 0xA832);
  756. extern void GXValidateViewPort(gxViewPort target)
  757.  THREEWORDINLINE(0x303C, 0x1f9, 0xA832);
  758. extern void GXValidateViewGroup(gxViewGroup target)
  759.  THREEWORDINLINE(0x303C, 0x1fa, 0xA832);
  760. extern gxValidationLevel GXGetValidation(void)
  761.  THREEWORDINLINE(0x303C, 0x1fb, 0xA832);
  762. extern void GXSetValidation(gxValidationLevel level)
  763.  THREEWORDINLINE(0x303C, 0x1fc, 0xA832);
  764. extern long GXGetValidationError(char *procedureName, void **argument, long *argumentNumber)
  765.  THREEWORDINLINE(0x303C, 0x1fd, 0xA832);
  766. extern gxUserDebugFunction GXGetUserGraphicsDebug(long *reference)
  767.  THREEWORDINLINE(0x303C, 0x1ff, 0xA832);
  768. extern void GXSetUserGraphicsDebug(gxUserDebugFunction userFunction, long reference)
  769.  THREEWORDINLINE(0x303C, 0x200, 0xA832);
  770.  
  771. #if defined(__MWERKS__) && GENERATING68K
  772.     #pragma pop
  773. #endif
  774.  
  775. #if PRAGMA_IMPORT_SUPPORTED
  776. #pragma import off
  777. #endif
  778.  
  779. #if PRAGMA_ALIGN_SUPPORTED
  780. #pragma options align=reset
  781. #endif
  782.  
  783. #ifdef __cplusplus
  784. }
  785. #endif
  786.  
  787. #endif /* __GXERRORS__ */
  788.